package com.example.hospitalbakcends.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 诊断
 * @TableName diagnosis
 */
@TableName(value = "diagnosis")
@Data
public class Diagnosis implements Serializable {
    /**
     * disId
     */
    @TableId(type = IdType.AUTO)//在自增主键的变量加上即可
    private Long disid;

    /**
     * 挂号患者身份证号
     */
    private String patientid;

    /**
     * 挂号患者姓名
     */
    private String patientname;

    /**
     * 主治医师ID
     */
    private String doctorid;

    /**
     * 主治医师姓名
     */
    private String doctorname;

    //医师部门
    private String department;
    /**
     * 开具的药方
     */
    private String medicines;

    /**
     * 预约日期
     */
    private Date disbooktime;

    /**
     * 诊断日期
     */
    private Date distime;

    /**
     * 更新时间
     */
    private Date updatetime;

    /**
     * 是否删除
     */
    private Integer isdelete;

    /**
     * 是否诊断
     */
    private Integer ischeck;

    /**
     * 支付金额
     */
    private String dismoney;

    /**
     * 是否支付
     */
    private Integer ispay;

    private static final long serialVersionUID = 1L;

    /**
     * disId
     */
    public Long getDisid() {
        return disid;
    }

    /**
     * disId
     */
    public void setDisid(Long disid) {
        this.disid = disid;
    }

    /**
     * 挂号患者身份证号
     */
    public String getPatientid() {
        return patientid;
    }

    /**
     * 挂号患者身份证号
     */
    public void setPatientid(String patientid) {
        this.patientid = patientid;
    }

    /**
     * 挂号患者姓名
     */
    public String getPatientname() {
        return patientname;
    }

    /**
     * 挂号患者姓名
     */
    public void setPatientname(String patientname) {
        this.patientname = patientname;
    }

    /**
     * 主治医师ID
     */
    public String getDoctorid() {
        return doctorid;
    }

    /**
     * 主治医师ID
     */
    public void setDoctorid(String doctorid) {
        this.doctorid = doctorid;
    }

    /**
     * 主治医师姓名
     */
    public String getDoctorname() {
        return doctorname;
    }

    /**
     * 主治医师姓名
     */
    public void setDoctorname(String doctorname) {
        this.doctorname = doctorname;
    }

    /**
     * 开具的药方
     */
    public String getMedicines() {
        return medicines;
    }

    /**
     * 开具的药方
     */
    public void setMedicines(String medicines) {
        this.medicines = medicines;
    }

    /**
     * 预约日期
     */
    public Date getDisbooktime() {
        return disbooktime;
    }

    /**
     * 预约日期
     */
    public void setDisbooktime(Date disbooktime) {
        this.disbooktime = disbooktime;
    }

    /**
     * 诊断日期
     */
    public Date getDistime() {
        return distime;
    }

    /**
     * 诊断日期
     */
    public void setDistime(Date distime) {
        this.distime = distime;
    }

    /**
     * 更新时间
     */
    public Date getUpdatetime() {
        return updatetime;
    }

    /**
     * 更新时间
     */
    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    /**
     * 是否删除
     */
    public Integer getIsdelete() {
        return isdelete;
    }

    /**
     * 是否删除
     */
    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    /**
     * 是否诊断
     */
    public Integer getIscheck() {
        return ischeck;
    }

    /**
     * 是否诊断
     */
    public void setIscheck(Integer ischeck) {
        this.ischeck = ischeck;
    }

    /**
     * 支付金额
     */
    public String getDismoney() {
        return dismoney;
    }

    /**
     * 支付金额
     */
    public void setDismoney(String dismoney) {
        this.dismoney = dismoney;
    }

    /**
     * 是否支付
     */
    public Integer getIspay() {
        return ispay;
    }

    /**
     * 是否支付
     */
    public void setIspay(Integer ispay) {
        this.ispay = ispay;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Diagnosis other = (Diagnosis) that;
        return (this.getDisid() == null ? other.getDisid() == null : this.getDisid().equals(other.getDisid()))
            && (this.getPatientid() == null ? other.getPatientid() == null : this.getPatientid().equals(other.getPatientid()))
            && (this.getPatientname() == null ? other.getPatientname() == null : this.getPatientname().equals(other.getPatientname()))
            && (this.getDoctorid() == null ? other.getDoctorid() == null : this.getDoctorid().equals(other.getDoctorid()))
            && (this.getDoctorname() == null ? other.getDoctorname() == null : this.getDoctorname().equals(other.getDoctorname()))
            && (this.getMedicines() == null ? other.getMedicines() == null : this.getMedicines().equals(other.getMedicines()))
            && (this.getDisbooktime() == null ? other.getDisbooktime() == null : this.getDisbooktime().equals(other.getDisbooktime()))
            && (this.getDistime() == null ? other.getDistime() == null : this.getDistime().equals(other.getDistime()))
            && (this.getUpdatetime() == null ? other.getUpdatetime() == null : this.getUpdatetime().equals(other.getUpdatetime()))
            && (this.getIsdelete() == null ? other.getIsdelete() == null : this.getIsdelete().equals(other.getIsdelete()))
            && (this.getIscheck() == null ? other.getIscheck() == null : this.getIscheck().equals(other.getIscheck()))
            && (this.getDismoney() == null ? other.getDismoney() == null : this.getDismoney().equals(other.getDismoney()))
            && (this.getIspay() == null ? other.getIspay() == null : this.getIspay().equals(other.getIspay()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDisid() == null) ? 0 : getDisid().hashCode());
        result = prime * result + ((getPatientid() == null) ? 0 : getPatientid().hashCode());
        result = prime * result + ((getPatientname() == null) ? 0 : getPatientname().hashCode());
        result = prime * result + ((getDoctorid() == null) ? 0 : getDoctorid().hashCode());
        result = prime * result + ((getDoctorname() == null) ? 0 : getDoctorname().hashCode());
        result = prime * result + ((getMedicines() == null) ? 0 : getMedicines().hashCode());
        result = prime * result + ((getDisbooktime() == null) ? 0 : getDisbooktime().hashCode());
        result = prime * result + ((getDistime() == null) ? 0 : getDistime().hashCode());
        result = prime * result + ((getUpdatetime() == null) ? 0 : getUpdatetime().hashCode());
        result = prime * result + ((getIsdelete() == null) ? 0 : getIsdelete().hashCode());
        result = prime * result + ((getIscheck() == null) ? 0 : getIscheck().hashCode());
        result = prime * result + ((getDismoney() == null) ? 0 : getDismoney().hashCode());
        result = prime * result + ((getIspay() == null) ? 0 : getIspay().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", disid=").append(disid);
        sb.append(", patientid=").append(patientid);
        sb.append(", patientname=").append(patientname);
        sb.append(", doctorid=").append(doctorid);
        sb.append(", doctorname=").append(doctorname);
        sb.append(", medicines=").append(medicines);
        sb.append(", disbooktime=").append(disbooktime);
        sb.append(", distime=").append(distime);
        sb.append(", updatetime=").append(updatetime);
        sb.append(", isdelete=").append(isdelete);
        sb.append(", ischeck=").append(ischeck);
        sb.append(", dismoney=").append(dismoney);
        sb.append(", ispay=").append(ispay);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}